import request from '@/utils/request'

// 查询考试大纲设置列表
export function listSyllabus(query) {
  return request({
    url: '/exam_syllabus/syllabus/list',
    method: 'get',
    params: query
  })
}

// 查询考试大纲设置详细
export function getSyllabus(examSyllabusId) {
  return request({
    url: '/exam_syllabus/syllabus/' + examSyllabusId,
    method: 'get'
  })
}

// 新增考试大纲设置
export function addSyllabus(data) {
  return request({
    url: '/exam_syllabus/syllabus',
    method: 'post',
    data: data
  })
}

// 修改考试大纲设置
export function updateSyllabus(data) {
  return request({
    url: '/exam_syllabus/syllabus',
    method: 'put',
    data: data
  })
}

// 删除考试大纲设置
export function delSyllabus(examSyllabusId) {
  return request({
    url: '/exam_syllabus/syllabus/' + examSyllabusId,
    method: 'delete'
  })
}
